package com.springbootblog.dao;

import com.springbootblog.dao.sqlBuilder.ToolsSqlBuilder;
import com.springbootblog.pojo.Tools;

import java.util.List;

import com.springbootblog.pojo.ToolsCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

@Mapper
public interface ToolsDao
{
    @SelectProvider(type = ToolsSqlBuilder.class, method = "getToolsListByCategoryId")
    List<Tools> getToolsListByCategoryId(@Param("category_id") String category_id);

    @SelectProvider(type = ToolsSqlBuilder.class, method = "getToolsCategoryList")
    List<ToolsCategory> getToolsCategoryList();
}